import mongoose from 'mongoose'

const codeSchema = new mongoose.Schema({
  name: {
    type: String
  },
  code: {
    type: String
  },
  createdAt: {
    type: Date,
    expires: 60
  }
})

export default mongoose.model('code', codeSchema)
